package cn.web.tunnelrobot.dao;

import cn.web.tunnelrobot.dto.EarlyWarning;
import cn.web.tunnelrobot.dto.WarningRecordDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 警告记录列表
 * @Author:lichuang
 */
public interface WarningRecordDao {
    //查询警告记录列表
    List<WarningRecordDTO> getWarningRecordList(@Param("wrLevel")String wrLevel,
                                                @Param("wrType")Integer wrType,
                                                @Param("wrDescribe")String wrDescribe,
                                                @Param("wrAffirmStatus")Integer wrAffirmStatus,
                                                @Param("wrWarningTime")Date wrWarningTime,
                                                @Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    //总条数
    int getWarningRecordListCount( @Param("wrType")Integer wrType,
                                @Param("wrLevel")String wrLevel,
                              @Param("wrDescribe")String wrDescribe,
                              @Param("wrAffirmStatus")Integer wrAffirmStatus,
                              @Param("wrWarningTime")Date wrWarningTime);
    //添加警告记录
    int addWarningRecordInfo(WarningRecordDTO warningRecordDTO);
    //批量修改==》确认信息
    void batchConfirm(@Param("wrAffirmUser")Integer wrAffirmUser, @Param("wrAffirmDate") Date wrAffirmDate, @Param("wrAffirmStatus")Integer wrAffirmStatus,@Param("wrId")Integer wrId);
    //首页轮播获取数据30条
    List<WarningRecordDTO> homePageShuffling();
    //今日日警告预示
    List<EarlyWarning> getEarlyWarning();
}
